package cn.wolfcode.shop.vo;

import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Pattern;

/**
 *  封装请求参数的类
 */
@Getter
@Setter
public class LoginParamVO {
    @Pattern(regexp = "^1[3|4|5|7|8][0-9]{9}$",message = "手机格式不正确")
    private String mobile;
    @NotEmpty(message = "密码不能为空")
    private String password;
}
